package study.day5.t5;

public class Cat extends Pet {
    public Cat() {

    }
    public Cat(String name, int power) {
        this.name = name;
        this.power = power;
    }
    @Override
    public void eat(int num) {
        power+=num;
        System.out.println("猫猫"+this.name+"能量增加了"+num+"，最终能量为："+this.power);
    }
}
